#include <fcntl.h> /* For O_* constants */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <unistd.h>
#include <iostream>

#define SHM_NAME "/shm"

int drop_shm()
{
    int ret = shm_unlink(SHM_NAME);
    if ((ret != 0) ){
        std::cerr << "shm_unlink failed" << std::endl;
        return -1;
    }

    return 0;
}

int main(void)
{
    return drop_shm();
}